package com.woniuxy.intellihome.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.api.R;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 * *匹配了类名跟数据库对应的表名
 *  增加了id属性
 *  匹配了属性名和表中的列名
 * @author jobob
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Getter
@Setter
@TableName("m_orderitem")
public class Orderitem implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;

    @TableField("SKU_id")
    private Integer skuId;

    @TableField("order_id")
    private Integer orderId;

    private Integer mount;

    private BigDecimal price;

    //存入goods规格信息
    @TableField(exist = false)
    private List<String> goodsSpec;

    @TableField(exist = false)
    private String goodsName;

    //存入订单明细商品的sku对象
    @TableField(exist = false)
    private Sku sku;

    //商品评价
    @TableField(exist = false)
    private Review review = new Review();
}
